package com.woniuxy.micropermissionserver.rolemanage.mapper;

import com.woniuxy.microcommonserver.bean.permission_hcz.Admin;
import com.woniuxy.microcommonserver.bean.permission_hcz.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper {

    void saveRole(Role role);

    void batchSaveRolePermission(@Param("role") Role role, @Param("permissionIds") List<Integer> permissionIds);

    List<String> findByAdmin(@Param("a") Admin admin);

    List<Role> findAll();
}
